package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Article;
import cn.edu.bcu.ls.entity.ArticleParams;
import cn.edu.bcu.ls.mapper.ArticleMapper;
import cn.edu.bcu.ls.serviceImpl.ArticleService;

@Service
public class ArticleServiceImpl implements ArticleService{

    @Resource
    private ArticleMapper articleMapper;

    @Override
    public int deleteByPrimaryKey(Integer aId) {
        return articleMapper.deleteByPrimaryKey(aId);
    }

    @Override
    public int insert(Article record) {
        return articleMapper.insert(record);
    }

    @Override
    public int insertSelective(Article record) {
        return articleMapper.insertSelective(record);
    }

    @Override
    public Article selectByPrimaryKey(Integer aId) {
        return articleMapper.selectByPrimaryKey(aId);
    }

    @Override
    public int updateByPrimaryKeySelective(Article record) {
        return articleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Article record) {
        return articleMapper.updateByPrimaryKey(record);
    }

	@Override
	public List<Article> selectBycIdaId(ArticleParams articleParams) {
		// TODO Auto-generated method stub
		return articleMapper.selectBycIdaId(articleParams);
	}

}
